<?php
    echo form_open('sourcecode/save');
    
    echo form_label('Enter your code...','source_code');
    echo '<br />';
    $data = array(
        'name' => 'source_code',
        'id' => 'source_codes',
        'class' => 'lined',
        'rows' => '20%',
        'cols' => '100%'
    );
    echo '<br />';
    echo form_textarea($data);
    
    $data = array(
        'name' => 'source_unique',
        'value' => $key
    );
    echo form_input($data);
    echo '<br />';
    echo form_submit('mysubmit','Save Code');
    echo form_close();
?>
<script>
$(function() {
    $(".lined").linedtextarea(
    );
});
</script>
